#ifndef TCPCLIENT_H
#define TCPCLIENT_H

#include <QWidget>
#include <QFile>
#include<QDebug>
#include<QTcpSocket>
#include "opewidget.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class tcpClient;
}
QT_END_NAMESPACE

class tcpClient : public QWidget
{
    Q_OBJECT

public:
    tcpClient(QWidget *parent = nullptr);
    ~tcpClient();

    void loadConfig();

public slots:
    void showConnect();
    void recvMsg();

private slots:
    //void on_send_pd_clicked();


    void on_cancel_pb_clicked();

    void on_login_pb_clicked();

    void on_regist_pb_clicked();

private:
    Ui::tcpClient *ui;

    QString m_ip;
    quint64 m_port;
    QTcpSocket m_tcpSocket;
};
#endif // TCPCLIENT_H
